<?php
/* @var $this ResourcesController */
/* @var $model Resources */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'resources-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
        'htmlOptions' => array('enctype' => 'multipart/form-data'),
)); ?>

	<?php echo $form->errorSummary($model); ?>
        
        <div class="row">
            <?php echo 'Enter video name:'; ?>
            <?php echo $form->textField($model, 'vedio'); ?>
            <?php echo $form->error($model, 'vedio'); ?>
        </div>
        <div class="row agree">
            <?php echo $form->labelEx($model, 'status'); ?>
            <?php echo $form->checkBox($model, 'status', array('size' => 1, 'maxlength' => 1)); ?>
            <?php echo $form->error($model, 'status'); ?>
        </div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->